package painting;

import javax.swing.JLabel;

public class Node {
	private int i;
	private int j;
	private JLabel label;

	public Node(int j, int i, JLabel label){
		this.i = i;
		this.j = j;
		this.label = label;
	}
	
	
	
	public int getI(){
		return i;
	}
	
	public int getJ(){
		return j;
	}
	
	public JLabel getLabel(){
		return label;
	}
	
	public int getIndex(){
		String temp = i + "" + j;
		return Integer.parseInt(temp);
	}
	
	public int reverseIndex(){
		String temp = j + "" + i;
		return Integer.parseInt(temp);
	}
}
